<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ include file="/common/common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css" href="${base}/css/orderinfo.css" />
		<title>Breaking Fast</title>
		<%@ include file="/common/commonstyle.jsp" %>
		<script type="text/javascript"><!--
			$(function() {
				$("#commitOrderForm").submit(function(){
					var userid = '${frontCurrentUser.userid}';
					if("" == userid) {
						alert("请先登录！");
						return false;
					} else {
						return true;
					}
				});
			});
		--></script>
	</head>
	
	<body>
		<div class="main">
			<%@ include file="/common/header.jsp" %>
			<br/>
	        <div class="taocan">
		    	<h5>我的餐盘</h5>
		        <div class="my_canpan">
		        	<ul>
		            	<li>
               				<em class="cp hui">餐品编号</em>
		                    <em class="mc hui">名称</em>
		                    <em class="sl_01 hui">数量</em>
		                    <em class="dj_01 hui">单价</em>
		                    <em class="dj_01 hui">合计</em>
                   			<em class="dj_01 hui">备注</em>
		                </li>
	            		<c:forEach items="${persionShopCar.waresList}" var="wares">
			            	<li class="mingxi">
               					<em class="bh">${wares.waresId}</em>
			                    <em class="tu"><img src="${base}${wares.photo}" width="64" height="44" alt=""></em>
			                    <em class="mx">${i18n == 'en_US' ? wares.enName : wares.chName}</em>
			                    <em class="sl_02">${wares.count}</em>
			                    <em class="dj_02">￥${wares.price}</em>
			                    <em class="hj">￥${wares.totalPrice}</em>
			                    <em class="dj_02">${wares.remark}</em>
							</li>
						</c:forEach>
		            </ul>
		        </div>
		        <div class="gongji">
	            	<p>共计：<span>￥${persionShopCar.totalPrice}元</span></p>
		        </div>
	        	<h6>
	        		<form:form id="commitOrderForm" action="${base}/orderFrontCtl/toPersionOrderCommit" >
		        		<input type="button" class="day_jxdc" value="继续订餐" onclick="location.href='${base}/index'" />
	            		<c:if test="${0 != fn:length(persionShopCar.waresList)}">
	        				<input type="submit" class="day_qfk" value="去结算" />
		                </c:if>
	                </form:form>
        		</h6>
		    </div>
			<%@ include file="/common/footer.jsp" %>
		</div>
	</body>
</html>
